package composite;

public class Client {
    public static void main(String[] args) {
        University edu = new University("南昌大学", "江西省211");
        College xgc = new College("信息工程学院", "信息工程学院牛逼");
        College ec = new College("医学院", "医学院牛逼");
        edu.add(xgc);
        edu.add(ec);
        Department aid = new  Department("人工智能", "人工智能专业nb");
        Department eeg = new Department("电气工程", "电气工程nb");
        xgc.add(aid);
        xgc.add(eeg);
        edu.print();
    }
}
